<template>
  <div style="margin-top: 12px">
    <a-radio-group
      v-model:value="nType"
      button-style="solid"
      @change="nTypesChange"
    >
      <a-radio-button value="flow">流程知会</a-radio-button>
      <a-radio-button value="todo">待办知会</a-radio-button>
    </a-radio-group>
  </div>
</template>

<script setup lang="ts">
import { ref, defineEmits, toRaw } from "vue";

const emit = defineEmits(['noticeTypeChange'])

const noticeTypeChange = (item: any) => {
  emit('noticeTypeChange', item)
}

const nType = ref('flow')
const nTypesChange = (val: any) => {
  nType.value = toRaw(val.target.value) ? toRaw(val.target.value) : 'flow'
  noticeTypeChange(nType.value)
}
</script>


<style lang="less" scoped>

</style>
